package com.itheima.service;

import com.itheima.pojo.Brand;
import com.itheima.pojo.Page;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 刘全
 * @date 2021/9/8
 */
@Transactional
public interface BrandService {

    List<Brand> selectAll();

    int add(Brand brand);

    int deleteById(int id);

    int update(Brand brand);

    int deleteByIds(int[] ids);

    Page<Brand> selectPage(int index, int pageSize);

    Page<Brand> selectByPageAndCondition(int page,int pageSize,Brand brand);
}
